package com.hmall.api.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户服务Feign接口
 *
 * @Author mr.Candy
 * @Date 2025/6/1817:25
 */
@FeignClient(name = "user-service", path = "/users")
public interface UserClient {
    @PutMapping("/money/deduct")
    public void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
